package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.SysTestingAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysTestingAnswerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysTestingAnswer record);

    int insertSelective(SysTestingAnswer record);

    SysTestingAnswer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysTestingAnswer record);

    int updateByPrimaryKey(SysTestingAnswer record);

    List<SysTestingAnswer> getAnswers(@Param("questionId") Integer questionId);

    int updateAnswer(SysTestingAnswer ta);

    int insertAnswer(SysTestingAnswer answer) ;

    int deleteAnswers(@Param("qid") int qid);

}